{% extends 'layout/header.html' %}

{% block body %}

    <h2>添加教师</h2>
    <form action="/add_tea/" method="POST" novalidate>
        {% csrf_token %}
        {% for feild in obj %}
            <div class="form-group">
                <label for="{{ feild.id_for_label }}">{{ feild.label }}</label>
                <div class="row">
                    <div class="col-xs-7">
                        {{ feild }}
                        <span class="error-msg">{{ feild.errors.0 }}</span>
                    </div>
                </div>
            </div>
        {% endfor %}
        <input type="submit" class="btn btn-default" value="添 加"/>
    </form>

{% endblock %}